﻿using Newtonsoft.Json;

namespace AutomationCommand
{
    public class open_app : BasiCommand
    {
        [JsonProperty("fun_type")]
        public string FunType { get; set; }

        [JsonProperty("othername")]
        public string OtherName { get; set; }

        [JsonProperty("type")]
        public string Type { get; set; }

        [JsonProperty("path")]
        public string Path { get; set; }

        [JsonProperty("arg")]
        public string Arg { get; set; }

        public open_app()
        {
            FunType = "open_app";
            OtherName = "打开应用";
            Type = "0";
            Path = "";
            Arg = "";
            SuccessJump = -1;
            FailureJump = -1;
        }

        public bool Execute()
        {
            // 在这里编写打开应用命令的逻辑
            // 返回执行结果
            return true; // 假设此处始终成功
        }
    }
}
